package com.stone.sys.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * SYS_ORGAN entity. @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "SYS_ORGAN")

public class TOrgan implements java.io.Serializable {

	 // Fields    
    private Long id;
    private String organName;
    private Integer organType;
    private String description;
    private String telephonenumber;
    
    private Long organCode;
    private Long parentCode;
    private Long parentId;
    private String organNameEn;


    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SYS_ORGAN")
    @SequenceGenerator(name="SYS_ORGAN",allocationSize=1, sequenceName="SEQ_ORGAN")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "ORGAN_NAME")
	public String getOrganName() {
		return organName;
	}

	public void setOrganName(String organName) {
		this.organName = organName;
	}
	@Column(name = "ORGAN_TYPE")
	public Integer getOrganType() {
		return organType;
	}

	public void setOrganType(Integer organType) {
		this.organType = organType;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTelephonenumber() {
		return telephonenumber;
	}

	public void setTelephonenumber(String telephonenumber) {
		this.telephonenumber = telephonenumber;
	}
	
	@Column(name = "ORGAN_CODE")
	public Long getOrganCode() {
		return organCode;
	}

	public void setOrganCode(Long organCode) {
		this.organCode = organCode;
	}
	@Column(name = "PARENT_CODE")
	public Long getParentCode() {
		return parentCode;
	}

	public void setParentCode(Long parentCode) {
		this.parentCode = parentCode;
	}
	
	@Column(name = "PARENT_ID")
	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	@Column(name = "ORGAN_NAME_EN")
	public String getOrganNameEn() {
		return organNameEn;
	}

	public void setOrganNameEn(String organNameEn) {
		this.organNameEn = organNameEn;
	}

}